 <div class="content-inner">
        <div class="marg20-btm">
            <a href=<?php echo site_url('backend_pages/allItem'); ?> class="btn btn-primary">&hearts; View Advertisings </a>
        </div>
        <form action=<?php echo site_url('backend_pages/addItem'); ?> method="post" class="form-horizontal" enctype="multipart/form-data" />
        <?php
        echo validation_errors();
        $adv_name = array(
            'name' => 'adverName',
            'placeholder' => 'Advertising Name.....',
            'class' => 'input-xlarge',
            'id' => 'input01',
			'value' => set_value('adverName'),
			'required' => ''
        );
        $adv_URL = array(
            'name' => 'adverUrl',
            'placeholder' => 'Advertising URL.....',
            'class' => 'input-xlarge',
            'id' => 'input01',
			'value' => set_value('adverUrl'),
			'required' => ''
        );
        $adv_upload = array(
            'name' => 'userfile',
            'class' => 'input-xlarge',
            'id' => 'input01',
            'type' => 'file',
			'required' => ''
        );
        $adv_submit = array(
            'name' => 'btn_upload_adver',
            'class' => 'btn btn-primary',
            'id' => 'input01',
            'type' => 'submit',
            'value' => 'Add Now'
        );
        $adv_position = array(
            '4' => '',
            '1' => 'Banner Top',
            '2' => 'Banner out left',
            '3' => 'Banner out right',
            '4' => 'Banner inside left'
        );
		$adv_statu = array(
            '1' => 'Publish',
            '0' => 'Unpublish'
        );
		
        ?>

        <div class="control-group" class="form-horizontal">

            <br />
            <label class="control-label" for="input01">AdvertiseName </label>
            <div class="controls">
                <?php echo form_input($adv_name); ?>
            </div>
        </div>


        <div class="control-group">
            <label class="control-label" for="input01">URL </label>
            <div class="controls">
                <?php echo form_input($adv_URL); ?>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Position </label>
            <div class="controls">
                <?php echo form_dropdown('adverPos', $adv_position); ?>
            </div>
        </div>
		<div class="control-group">
            <label class="control-label" for="input01">Status </label>
            <div class="controls">
                <?php echo form_dropdown('adverstatu', $adv_statu); ?>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="fileInput">Image Advertising</label>
            <div class="controls">
                <?php echo form_input($adv_upload); ?>
            </div>
        </div>
        <div class="form-actions">
            <?php echo form_input($adv_submit); ?>
            <a href="<?php echo site_url('backend_pages/allItem'); ?>" class="btn">Cancel </a>
        </div>
    </form> 